<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@ include file="/admin/commons/taglib.jsp"%>
<%
    String path = request.getContextPath();
%>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>后台管理</title>
    <s:include value="/layouts/kindEditor.jsp"></s:include>
    <script type="text/javascript">
        $(function(){
            $("#teacherKeshi").addClass("active");
            $("#teacherKeshi").find("ul li").eq(0).addClass("active");
        })
    </script>
    <style>
        td{
            border:1px solid #dcdcdc;
            text-align: center;
            vertical-align:middle;
            height: 80px;
        }
        th{
            border:2px solid #dcdcdc;
            text-align: center;
            padding: 10px;
        }

    </style>
</head>
<body>
    <div class="admin">
        <div class="panel">
            <div class="panel-head">
                <strong style="padding: 10px 10px 50px 10px;">${teacher.name}--课程表</strong>&nbsp;&nbsp;&nbsp;&nbsp;
                <ul class="pagination">
                    <li>
                        <a href="teacherKeshi!toDetail.action?teacher.id=${teacher.id}&weekIndex=${weekIndex-1}">上一周</a>
                    </li>
                </ul>
                <ul class="pagination">
                    <li>
                        <a href="teacherKeshi!toDetail.action?teacher.id=${teacher.id}&weekIndex=${weekIndex+1}">下一周</a>
                    </li>
                </ul>
            </div>
            <div class="panel-body">
                <table class="">
                    <tr>
                        <th width="200">周一</br>${lstDate[0]}</th><th width="200">周二</br>${lstDate[1]}</th><th width="200">周三</br>${lstDate[2]}</th>
                        <th width="200">周四</br>${lstDate[3]}</th><th width="200">周五</br>${lstDate[4]}</th>
                        <th width="200">周六</br>${lstDate[5]}</th><th width="200">周日</br>${lstDate[6]}</th></tr>
                    <s:iterator value="{0,1,2,3}" var="s_index">
                        <tr>
                            <td >
                                     ${lst[0][s_index].name} </br></br>
                                     ${lst[0][s_index].startTime}~${lst[0][s_index].endTime}</td>
                            <td >
                                    ${lst[1][s_index].name} </br></br>
                                    ${lst[1][s_index].startTime}~${lst[1][s_index].endTime}</td>
                            <td >
                                    ${lst[2][s_index].name} </br></br>
                                    ${lst[2][s_index].startTime}~${lst[2][s_index].endTime}</td>
                            <td >
                                    ${lst[3][s_index].name} </br></br>
                                    ${lst[3][s_index].startTime}~${lst[3][s_index].endTime}</td>
                            <td >
                                    ${lst[4][s_index].name} </br></br>
                                    ${lst[4][s_index].startTime}~${lst[4][s_index].endTime}</td>
                            <td >
                                    ${lst[5][s_index].name} </br></br>
                                    ${lst[5][s_index].startTime}~${lst[5][s_index].endTime}</td>
                            <td >
                                    ${lst[6][s_index].name} </br></br>
                                    ${lst[6][s_index].startTime}~${lst[6][s_index].endTime}</td>
                        </tr>
                    </s:iterator>
                </table>
            </div>
        </div>
    </div>

</body>
</html>

